﻿<%@ Page Title="" Language="C#" MasterPageFile="~/adminpanel.master" AutoEventWireup="true" CodeFile="ProductReport.aspx.cs" Inherits="Web_ProductReport" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
   
    
   
    <style type="text/css">
        .style2
        {
            width: 247px;
        }
        .style4
        {
            width: 125px;
        }
        .style5
        {
            width: 121px;
        }
        .style6
        {
            width: 81px;
        }
    </style>
   
    
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <table  width="100%">
            <tr>
                <td class="style2" >
                    &nbsp;</td>
                <td class="style4">
                    &nbsp;</td>
                <td class="style5" >
                    &nbsp;</td>
                <td >
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td >
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" >
                    </td>
                <td class="style4">
                </td>
                <td class="style5" >
                    </td>
                <td >
                    </td>
                <td>
                    </td>
                <td >
                    </td>
            </tr>
            <tr>
                <td class="style2" >
                    &nbsp;</td>
                <td class="style4" >
                    <dx:ASPxLabel ID="ASPxLabel5" runat="server" ClientIDMode="AutoID" 
                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                        Font-Bold="True" Font-Names="Tahoma" ForeColor="#0000CC" Text="Report By:">
                    </dx:ASPxLabel>
                </td>
                <td class="style5">
                    &nbsp;</td>
                <td >
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" >
                    &nbsp;</td>
                <td class="style4">
                    <dx:ASPxRadioButton ID="ASPxRadioButton4" runat="server" 
                        oncheckedchanged="ASPxRadioButton4_CheckedChanged" Text="Category" 
                        AutoPostBack="True" GroupName="report">
                    </dx:ASPxRadioButton>
                </td>
                <td class="style5" >
                    <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text="Select Category">
                    </dx:ASPxLabel>
                </td>
                <td >
                    <asp:DropDownList ID="DropDownList1" runat="server" 
                        DataSourceID="SqlDataSource1" DataTextField="Cat_Name" DataValueField="Cat_ID">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" >
                    &nbsp;</td>
                <td class="style4" >
                    <dx:ASPxRadioButton ID="ASPxRadioButton5" runat="server" 
                        oncheckedchanged="ASPxRadioButton5_CheckedChanged" Text="Sub Category" 
                        AutoPostBack="True" GroupName="report">
                    </dx:ASPxRadioButton>
                </td>
                <td class="style5" >
                    <dx:ASPxLabel ID="ASPxLabel7" runat="server" Text="Select Sub Category">
                    </dx:ASPxLabel>
                </td>
                <td >
                    <asp:DropDownList ID="DropDownList2" runat="server" 
                        DataSourceID="SqlDataSource2" DataTextField="Sub_Cat_Name" 
                        DataValueField="Sub_Cat">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" >
                    &nbsp;</td>
                <td class="style4" >
                    <dx:ASPxRadioButton ID="ASPxRadioButton6" runat="server" 
                        oncheckedchanged="ASPxRadioButton6_CheckedChanged" Text="Supplier" 
                        AutoPostBack="True" GroupName="report">
                    </dx:ASPxRadioButton>
                </td>
                <td class="style5" >
                    <dx:ASPxLabel ID="ASPxLabel8" runat="server" Text="Select Supplier Name">
                    </dx:ASPxLabel>
                </td>
                <td >
                    <asp:DropDownList ID="DropDownList3" runat="server" 
                        DataSourceID="SqlDataSource3" DataTextField="Sup_Name" DataValueField="Sup_ID">
                    </asp:DropDownList>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" >
                    &nbsp;</td>
                <td class="style4" >
                    &nbsp;</td>
                <td class="style5" >
                    &nbsp;</td>
                <td >
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" >
                    &nbsp;</td>
                <td class="style4" >
                    &nbsp;</td>
                <td class="style5" >
                    &nbsp;</td>
                <td >
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style2" >
                    &nbsp;</td>
                <td class="style4" >
                    <dx:ASPxButton ID="ASPxButton1" runat="server" ClientIDMode="AutoID" 
                        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
                        onclick="ASPxButton1_Click" 
                        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" 
                        Text="Generate Report">
                    </dx:ASPxButton>
                </td>
                <td class="style5" >
                    &nbsp;</td>
                <td >
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
        </table>
    
    </div>
    <table >
        <tr>
            <td class="style6" >
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style6" >
                &nbsp;</td>
            <td>
    <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
    AutoDataBind="true" EnableDatabaseLogonPrompt="False" ToolPanelView="None" 
                    HasCrystalLogo="False" />
            </td>
        </tr>
    </table>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString %>" 
                        SelectCommand="SELECT [Cat_ID], [Cat_Name] FROM [Tbl_Category]">
                    </asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString %>" 
                        SelectCommand="SELECT [Sub_Cat], [Sub_Cat_Name] FROM [Tbl_Sub_Category]">
                    </asp:SqlDataSource>
                    <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:BestlifeDBConnectionString %>" 
                        SelectCommand="SELECT [Sup_Name], [Sup_ID] FROM [Tbl_Supplier]">
                    </asp:SqlDataSource>
                
</asp:Content>

